package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.educational.entity.PeriodSegment;
import com.yuyou.fn.educational.vo.PeriodSegmentVo;

import java.util.List;
import java.util.Map;

/**
 *
 * PeriodSegment 表数据服务层接口
 *
 */
public interface IPeriodSegmentService extends ISuperService<PeriodSegment,Long> {


    void updateSegment(Long periodId, List<PeriodSegmentVo> segmentList);

    List<PeriodSegmentVo> findPeriodSegmentList(Long periodId);

    List<PeriodSegment> findByPeriodSegmentListByPeriodIds(List<Long> periodIds);
    /**
     *@Description: 段次列表更根据periodId，segmentNo 分组
     *@Param:
     *@return:
     *@Author: lzh
     *@date:
     */
    Map<Long,Map<Integer,PeriodSegment>> periodSegmentToMapGroup(List<PeriodSegment> periodSegmentList);

    PeriodSegment findByIdAndNo(Long segmentId,Integer segmentNo);
}